﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Core.Xml.Ogc.Ows
{
    class ValuesReference : IXmlIsland, IPossibleValue
    {
        public string Reference { get; set; }
        public string Value { get; set; }

        public XElement CreateXElement()
        {
            XElement valuesReference = new XElement(Namespaces.OWS + "ValuesReference");

            valuesReference.Add(new XAttribute(Namespaces.OWS + "reference", Reference));
            valuesReference.Add(new XText(Value));

            return valuesReference;
        }
    }
}
